﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace VetumaForSP2010.Configuration
{
    public class SharePointGroup : ConfigurationElement
    {
        [ConfigurationProperty("GroupName", IsRequired = true, IsKey = true)]
        public string GroupName
        {
            get
            {
                if (this["GroupName"] != null)
                {
                    return this["GroupName"].ToString() as string;
                }
                else
                {
                    throw new NullReferenceException("GroupName property missing from SharePointGonfig at web.config.");
                }
            }
        }
    }
}
